package com.wandian.game.facades
{
	
	import flash.display.Sprite;
	
	import com.wandian.mvc.Action;
	import com.wandian.mvc.Facade;
	import com.wandian.game.GameContainer;
	import com.wandian.game.GameMediator;
	import com.wandian.game.Mediators.LoginMediator;
	public class GameFacade extends Facade
	{
		protected var gameContainer:GameContainer
		public function GameFacade(name:String)
		{
			super(name);
		}
		override protected function onInitialize():void
		{
			gameContainer=new GameContainer()
			//设置当前显示精灵
			this.setContentView(gameContainer);
			//注册中介者，同时注册了所包含的所有事件
			this.registerMediator(new GameMediator("GameMediator",gameContainer));
			this.registerMediator(new LoginMediator("LoginMediator",gameContainer.loginFrame));
			
		}
	}
}
